//
//  MovieScrollView.h
//  Movie
//
//  Created by cjy on 16/3/23.
//  Copyright © 2016年 HY. All rights reserved.
//

#import <UIKit/UIKit.h>

@class MovieScrollView;
@class MovieImageView;


@protocol MovieScrollViewDelegate <UIScrollViewDelegate>

//- (void)headerScroll:(MovieScrollView *)scroll didSelectItemAtIndex:(NSInteger)index;
//- (void)headerScroll:(MovieScrollView *)scroll didClose:(BOOL)close;

@end




@interface MovieScrollView : UIScrollView

@property (nonatomic ,assign ,readonly) NSInteger currentIndex;

- (void)setCurrentIndex:(NSInteger)currentIndex;

- (instancetype)initWithFrame:(CGRect)frame imageArray:(NSArray *)imageArray index:(NSInteger)index;



@end
